<?php
    //user profile data
    $customer = HTTPContext::$session['customer'];

    echo "
    <td valign='top' width='305' class='h400'>       
        <table border='0' cellspacing='0' cellpadding='0' class='all'>
         <tr>
           <td width='5' height='5'><img src='/app/themes/default/img/c3_left_top.png' alt='' /></td>
           <td class='c3_bg_top'><img src='".SITE_IMAGES."vid.gif' alt='' /></td>
           <td width='5'><img src='/app/themes/default/img/c3_right_top.png' alt='' /></td>
         </tr>
         
         <tr>
           <td class='c3_bg_left'><img src='".SITE_IMAGES."vid.gif' alt='' /></td>
           <td valign='top' class='c3_txt'>
           		<div id='topUpButton'>
           			<a href='#' onclick='TopUpClick(); return false;'>". Language::Get('Top Up') . "</a>
           		</div>";
    
    				//account menu
    				foreach (Menus::$site_account as $key => $menu)
    				{
    					$cssClass = ($key == $this->menuItem) ? 'menu_left_select' : 'menu_left';
						echo "<div class='$cssClass'><a href='{$menu['url']}'>{$menu['text']}</a></div>";    				
    				}
    				
	echo " </td>
           <td class='c3_bg_right'><img src='".SITE_IMAGES."vid.gif' alt='' /></td>
         </tr>
         
         <tr>
           <td width='5' height='5'><img src='/app/themes/default/img/c3_left_bottom.png' alt='' /></td>
           <td class='c3_bg_bottom'><img src='".SITE_IMAGES."vid.gif' alt='' /></td>
           <td width='5'><img src='/app/themes/default/img/c3_right_bottom.png' alt='' /></td>
         </tr>				          
        </table>
	</td>     
    ";
	
	echo "
		<div id='topUpPopup' style='display: none; z-index:5000;' >
			<div class='lp1 lpad10 rpad10 bpad10'><span class='size18'>".Language::Get('Contact Us')."</span></div>
		  	<div class='lpad10 rpad10 tpad10'>";
	$this->IncludeHTMLPage('topupdesc');
 	echo "	</div>
 		</div>";
	XHTML::Script("", "
		
		$('#topUpPopup').dqDialog({});
		function TopUpClick()
		{
			//alert($('#topUpPopup'));
			$('#topUpPopup').dqDialog('open',{width:'500', top:'120'});
		}
	");
?>

